package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@Accessors(chain = true)
public class BrandUpdateInfoParam implements Serializable {
    @NotNull(message = "修改失败，品牌ID不能为空！")
    @ApiModelProperty(value = "品牌ID",required = true,example = "1")
    @Range(min = 1,message ="修改失败，品牌ID只能为正数！" )
    private Long id;
    @NotNull(message = "修改失败，品牌名称不能为空！")
    @ApiModelProperty(value = "品牌名称",required = true,example = "坤坤")
    private String name;
    @NotNull(message = "修改失败，品牌拼音不能为空！")
    @ApiModelProperty(value = "品牌拼音",required = true,example = "kunkun")
    private String pinyin;
    @ApiModelProperty(value = "品牌logo的地址",required = true,example = "logo的url")
    private String logo;
    @ApiModelProperty(value = "品牌描述",required = true,example = "爱坤专属")
    private String description;
    @ApiModelProperty(value = "品牌关键字",required = true,example = "暂无")
    private String keywords;
    @NotNull(message = "修改失败，排序序号不能为空！")
    @ApiModelProperty(value = "排序序号",required = true,example = "66")
    @Range(max = 99,message = "排序序号必须在0到99之间")
    private Integer sort;


}
